package com.pkx.guide.info.service;

import java.net.Socket;

public interface SocketService {
    /**
     * 创建连接
     * @param host
     * @param port
     * @return
     */
    Socket clientSocket(String host, Integer port);

    /**
     * 发送
     * @param bytes
     * @param socket
     */
    void send(byte[] bytes,Socket socket);

    /**
     * 回执
     * @param socket
     * @return
     */
    byte[] receive(Socket socket);
}